import request  from "@/utils/request.js"

export const getLogin=data=>{
    return request({
        method:'POST',
        url:'/mp/v1_0/authorizations',
        data
    })
}

export const getUser=()=>{
    return request({
        method:'GET',
        url:'/mp/v1_0/user/profile',
       
    })
}
//编辑用户资料
export const updateProfile=(data)=>{
    return request({
        method:'PATCH',
        url:'/mp/v1_0/user/profile',
        data
       
    })
}
//编辑用户头像
export const updateimage=(data)=>{
    return request({
        method:'PATCH',
        url:'/mp/v1_0/user/photo',
        data
        
    })
}